
public abstract class VehicleFactory {
	public static final String LUXURY_VEHICLE=" Luxury ";
	public static final String NON_LUXURY_VEHICLE=" Non-Luxury ";
	
	public abstract Car getCAr();
	public abstract SUV getSUV();
	
	public static VehicleFactory getVehicleFactory(String type){
		if(type.equals(VehicleFactory.LUXURY_VEHICLE)) return new LuxuryVehicleFactory();
		if(type.equals(VehicleFactory.NON_LUXURY_VEHICLE)) return new NonLuxuryVehicleFactory();
		return new LuxuryVehicleFactory();
	}
}
